import db from '@dfeidao/atom-nodejs/db';
import log from '@dfeidao/atom-nodejs/logger/log';
import { systemid } from '././config';
interface Message {
	productid: string;
}
interface D {
	release_time: number;
	release_time_str: string;
}
export default async function atom(msg: Message, action_id: string, session_id: string) {
	log('Service begin');
	// todo
	const { exec, prepare } = db.query(action_id, session_id, systemid);
	prepare('company', ['logo'], { productid: msg.productid }, 1, 1, [], []);
	const [data] = await exec<D>();
	log('Service end');
	return { data };
}
